decoder/ffmpeg: pass references instead of pointers