gst-libs/gst/riff/riff-read.c: Parse extra data better, apparently it's right behind the normal strf header size. Fix...

Original commit message from CVS:
Patch by: Young-Ho Cha <ganadist at chollian dot net>
* gst-libs/gst/riff/riff-read.c: (gst_riff_parse_strf_vids):
Parse extra data better, apparently it's right behind
the normal strf header size. Fixes #343500.
This commit is contained in:
Young-Ho Cha 2006-06-16 13:59:29 +00:00 committed by Wim Taymans
parent a2ae3341a7
commit f1392c148e
2 changed files with 12 additions and 3 deletions

View file

@ -1,3 +1,11 @@
2006-06-16 Wim Taymans <wim@fluendo.com>
Patch by: Young-Ho Cha <ganadist at chollian dot net>
* gst-libs/gst/riff/riff-read.c: (gst_riff_parse_strf_vids):
Parse extra data better, apparently it's right behind
the normal strf header size. Fixes #343500.
2006-06-16 Wim Taymans <wim@fluendo.com>
* ext/alsa/gstalsasink.c: (set_hwparams):

View file

@ -340,9 +340,10 @@ gst_riff_parse_strf_vids (GstElement * element,
"strf_vids header gave %d bytes data, only %d available",
strf->size, GST_BUFFER_SIZE (buf));
strf->size = GST_BUFFER_SIZE (buf);
} else if (strf->size < GST_BUFFER_SIZE (buf)) {
*data = gst_buffer_create_sub (buf, strf->size,
GST_BUFFER_SIZE (buf) - strf->size);
}
if (sizeof (gst_riff_strf_vids) < GST_BUFFER_SIZE (buf)) {
*data = gst_buffer_create_sub (buf, sizeof (gst_riff_strf_vids),
GST_BUFFER_SIZE (buf) - sizeof (gst_riff_strf_vids));
}
/* debug */