Commit f1392c14 authored by Young-Ho Cha's avatar Young-Ho Cha Committed by Wim Taymans
Browse files

gst-libs/gst/riff/riff-read.c: Parse extra data better, apparently it's right...

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.
parent a2ae3341
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> 2006-06-16 Wim Taymans <wim@fluendo.com>
   
* ext/alsa/gstalsasink.c: (set_hwparams): * ext/alsa/gstalsasink.c: (set_hwparams):
......
...@@ -340,9 +340,10 @@ gst_riff_parse_strf_vids (GstElement * element, ...@@ -340,9 +340,10 @@ gst_riff_parse_strf_vids (GstElement * element,
"strf_vids header gave %d bytes data, only %d available", "strf_vids header gave %d bytes data, only %d available",
strf->size, GST_BUFFER_SIZE (buf)); strf->size, GST_BUFFER_SIZE (buf));
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, if (sizeof (gst_riff_strf_vids) < GST_BUFFER_SIZE (buf)) {
GST_BUFFER_SIZE (buf) - strf->size); *data = gst_buffer_create_sub (buf, sizeof (gst_riff_strf_vids),
GST_BUFFER_SIZE (buf) - sizeof (gst_riff_strf_vids));
} }
/* debug */ /* debug */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment