mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
gst/avi/gstavidemux.c: Handle JUNK chunks inside data section. Prevents warnings.
Original commit message from CVS: * gst/avi/gstavidemux.c: (gst_avi_demux_stream_data): Handle JUNK chunks inside data section. Prevents warnings.
This commit is contained in:
parent
0b122a2891
commit
d5153a8691
2 changed files with 19 additions and 9 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2004-04-11 Ronald Bultje <rbultje@ronald.bitfreak.net>
|
||||||
|
|
||||||
|
* gst/avi/gstavidemux.c: (gst_avi_demux_stream_data):
|
||||||
|
Handle JUNK chunks inside data section. Prevents warnings.
|
||||||
|
|
||||||
2004-04-11 Ronald Bultje <rbultje@ronald.bitfreak.net>
|
2004-04-11 Ronald Bultje <rbultje@ronald.bitfreak.net>
|
||||||
|
|
||||||
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps),
|
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps),
|
||||||
|
|
|
@ -1393,16 +1393,21 @@ gst_avi_demux_stream_data (GstAviDemux * avi)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
/* Support for rec-list files */
|
/* Support for rec-list files */
|
||||||
if (tag == GST_RIFF_TAG_LIST) {
|
switch (tag) {
|
||||||
if (!(tag = gst_riff_peek_list (riff)))
|
case GST_RIFF_TAG_LIST:
|
||||||
return FALSE;
|
if (!(tag = gst_riff_peek_list (riff)))
|
||||||
if (tag == GST_RIFF_rec) {
|
|
||||||
/* Simply skip the list */
|
|
||||||
if (!gst_riff_read_list (riff, &tag))
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
if (!(tag = gst_riff_peek_tag (riff, NULL)))
|
if (tag == GST_RIFF_rec) {
|
||||||
return FALSE;
|
/* Simply skip the list */
|
||||||
}
|
if (!gst_riff_read_list (riff, &tag))
|
||||||
|
return FALSE;
|
||||||
|
if (!(tag = gst_riff_peek_tag (riff, NULL)))
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
case GST_RIFF_TAG_JUNK:
|
||||||
|
return gst_riff_read_skip (riff);
|
||||||
}
|
}
|
||||||
|
|
||||||
stream_nr = CHUNKID_TO_STREAMNR (tag);
|
stream_nr = CHUNKID_TO_STREAMNR (tag);
|
||||||
|
|
Loading…
Reference in a new issue