mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
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:
parent
a2ae3341a7
commit
f1392c148e
2 changed files with 12 additions and 3 deletions
|
@ -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):
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue