Commit d494f6f9 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵
Browse files

avauddec: Mark frames as corrupted if libav tells us they are

This is currently only implemented by the h264 codec and no audio codec.
parent b278ca55
......@@ -582,6 +582,10 @@ gst_ffmpegauddec_audio_frame (GstFFMpegAudDec * ffmpegdec,
ffmpegdec->info.channels, ffmpegdec->ffmpeg_layout,
/* Mark corrupted frames as corrupted */
if (frame.flags & AV_FRAME_FLAG_CORRUPT)
} else {
*outbuf = NULL;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment