mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
avidemux: don't parse NULL indexes
for some streams we might fail to fetch the index offsets. Don't try to parse NULL indexes in those cases.
This commit is contained in:
parent
9afc247906
commit
7d39f8e5bb
1 changed files with 3 additions and 0 deletions
|
@ -1532,6 +1532,9 @@ gst_avi_demux_read_subindexes_pull (GstAviDemux * avi)
|
|||
for (n = 0; n < avi->num_streams; n++) {
|
||||
GstAviStream *stream = &avi->stream[n];
|
||||
|
||||
if (stream->indexes == NULL)
|
||||
continue;
|
||||
|
||||
for (i = 0; stream->indexes[i] != GST_BUFFER_OFFSET_NONE; i++) {
|
||||
if (gst_riff_read_chunk (GST_ELEMENT_CAST (avi), avi->sinkpad,
|
||||
&stream->indexes[i], &tag, &buf) != GST_FLOW_OK)
|
||||
|
|
Loading…
Reference in a new issue