ffmpeg: call pre_process_video_frame() only if decoding is needed