mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
gst/avi/gstavidemux.c: If there's no entries in the subindex, don't try to do anything stupid, just return.
Original commit message from CVS: * gst/avi/gstavidemux.c: (gst_avi_demux_parse_subindex): If there's no entries in the subindex, don't try to do anything stupid, just return.
This commit is contained in:
parent
2fced64b4f
commit
87eb1f391d
2 changed files with 10 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2008-02-04 Edward Hervey <edward.hervey@collabora.co.uk>
|
||||
|
||||
* gst/avi/gstavidemux.c: (gst_avi_demux_parse_subindex):
|
||||
If there's no entries in the subindex, don't try to do anything stupid,
|
||||
just return.
|
||||
|
||||
2008-02-02 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
Patch by: John Millikin <jmillikin at gmail dot com>
|
||||
|
|
|
@ -979,6 +979,10 @@ gst_avi_demux_parse_subindex (GstAviDemux * avi,
|
|||
num = GST_READ_UINT32_LE (&data[4]);
|
||||
baseoff = GST_READ_UINT64_LE (&data[12]);
|
||||
|
||||
/* If there's nothing, just return ! */
|
||||
if (num == 0)
|
||||
return TRUE;
|
||||
|
||||
if (!(entries = g_try_new (gst_avi_index_entry, num)))
|
||||
goto out_of_mem;
|
||||
|
||||
|
|
Loading…
Reference in a new issue