projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b278ca5
)
avauddec: Mark frames as corrupted if libav tells us they are
author
Sebastian Dröge
<sebastian@centricular.com>
Thu, 16 Jan 2014 12:45:58 +0000
(13:45 +0100)
committer
Sebastian Dröge
<sebastian@centricular.com>
Thu, 16 Jan 2014 12:46:26 +0000
(13:46 +0100)
This is currently only implemented by the h264 codec and no audio codec.
https://bugzilla.gnome.org/show_bug.cgi?id=722290
ext/libav/gstavauddec.c
patch
|
blob
|
history
diff --git
a/ext/libav/gstavauddec.c
b/ext/libav/gstavauddec.c
index
ecff389
..
c55550a
100644
(file)
--- a/
ext/libav/gstavauddec.c
+++ b/
ext/libav/gstavauddec.c
@@
-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;
}