mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
avidemux: use same fourcc to determine caps in determining uncompressed-ness
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=673898 Conflicts: gst/avi/gstavidemux.c
This commit is contained in:
parent
e5369901ad
commit
6cb106d690
1 changed files with 4 additions and 1 deletions
|
@ -4463,11 +4463,14 @@ gst_avi_demux_invert (GstAviStream * stream, GstBuffer * buf)
|
||||||
guint8 *tmp = NULL;
|
guint8 *tmp = NULL;
|
||||||
GstMapInfo map;
|
GstMapInfo map;
|
||||||
GstCaps *caps;
|
GstCaps *caps;
|
||||||
|
guint32 fourcc;
|
||||||
|
|
||||||
if (stream->strh->type != GST_RIFF_FCC_vids)
|
if (stream->strh->type != GST_RIFF_FCC_vids)
|
||||||
return buf;
|
return buf;
|
||||||
|
|
||||||
if (!gst_avi_demux_is_uncompressed (stream->strh->fcc_handler)) {
|
fourcc = (stream->strf.vids->compression) ?
|
||||||
|
stream->strf.vids->compression : stream->strh->fcc_handler;
|
||||||
|
if (!gst_avi_demux_is_uncompressed (fourcc)) {
|
||||||
return buf; /* Ignore non DIB buffers */
|
return buf; /* Ignore non DIB buffers */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue