FFMPEG: Fixing a bug that crashes the decoding process.