mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
avidemux: only check video compression for video streams
Or else we might deref a stream with a NULL strf.vids and segfault
This commit is contained in:
parent
a965185dee
commit
6f0e8a8b87
1 changed files with 2 additions and 1 deletions
|
@ -2716,7 +2716,8 @@ gst_avi_demux_parse_index (GstAviDemux * avi, GstBuffer * buf)
|
||||||
if (stream->strh->type == GST_RIFF_FCC_auds) {
|
if (stream->strh->type == GST_RIFF_FCC_auds) {
|
||||||
/* all audio frames are keyframes */
|
/* all audio frames are keyframes */
|
||||||
ENTRY_SET_KEYFRAME (&entry);
|
ENTRY_SET_KEYFRAME (&entry);
|
||||||
} else if (stream->strf.vids->compression == GST_RIFF_DXSB) {
|
} else if (stream->strh->type == GST_RIFF_FCC_vids &&
|
||||||
|
stream->strf.vids->compression == GST_RIFF_DXSB) {
|
||||||
/* all xsub frames are keyframes */
|
/* all xsub frames are keyframes */
|
||||||
ENTRY_SET_KEYFRAME (&entry);
|
ENTRY_SET_KEYFRAME (&entry);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue