mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 11:55:39 +00:00
avauddec: Mark frames as corrupted if libav tells us they are
This is currently only implemented by the h264 codec and no audio codec. https://bugzilla.gnome.org/show_bug.cgi?id=722290
This commit is contained in:
parent
b278ca55be
commit
d494f6f983
1 changed files with 4 additions and 0 deletions
|
@ -582,6 +582,10 @@ gst_ffmpegauddec_audio_frame (GstFFMpegAudDec * ffmpegdec,
|
|||
ffmpegdec->info.channels, ffmpegdec->ffmpeg_layout,
|
||||
ffmpegdec->info.position);
|
||||
}
|
||||
|
||||
/* Mark corrupted frames as corrupted */
|
||||
if (frame.flags & AV_FRAME_FLAG_CORRUPT)
|
||||
GST_BUFFER_FLAG_SET (*outbuf, GST_BUFFER_FLAG_CORRUPTED);
|
||||
} else {
|
||||
*outbuf = NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue