mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00: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>
|
||||
|
||||
* 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;
|
||||
|
||||
/* Support for rec-list files */
|
||||
if (tag == GST_RIFF_TAG_LIST) {
|
||||
if (!(tag = gst_riff_peek_list (riff)))
|
||||
return FALSE;
|
||||
if (tag == GST_RIFF_rec) {
|
||||
/* Simply skip the list */
|
||||
if (!gst_riff_read_list (riff, &tag))
|
||||
switch (tag) {
|
||||
case GST_RIFF_TAG_LIST:
|
||||
if (!(tag = gst_riff_peek_list (riff)))
|
||||
return FALSE;
|
||||
if (!(tag = gst_riff_peek_tag (riff, NULL)))
|
||||
return FALSE;
|
||||
}
|
||||
if (tag == GST_RIFF_rec) {
|
||||
/* 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);
|
||||
|
|
Loading…
Reference in a new issue