Commit 19ccb5f6 authored by Edward Hervey's avatar Edward Hervey 🤘

gst/qtdemux/qtdemux.c: Check that the size of the returned buffer is of the...

gst/qtdemux/qtdemux.c: Check that the size of the returned buffer is of the correct size because the parser assumes t...

Original commit message from CVS:
* gst/qtdemux/qtdemux.c: (gst_qtdemux_loop_state_header):
Check that the size of the returned buffer is of the correct size
because the parser assumes that.
Fixes #331543.
parent 200bde0e
2006-02-17 Edward Hervey <edward@fluendo.com>
* gst/qtdemux/qtdemux.c: (gst_qtdemux_loop_state_header):
Check that the size of the returned buffer is of the correct size
because the parser assumes that.
Fixes #331543.
2006-02-17 Jan Schmidt <thaytan@mad.scientist.com>
* configure.ac:
......
......@@ -589,6 +589,13 @@ gst_qtdemux_loop_state_header (GstQTDemux * qtdemux)
ret = gst_pad_pull_range (qtdemux->sinkpad, cur_offset, length, &moov);
if (ret != GST_FLOW_OK)
goto beach;
if (length != GST_BUFFER_SIZE (moov)) {
GST_WARNING_OBJECT (qtdemux,
"We got less than expected (received %d, wanted %d)",
GST_BUFFER_SIZE (moov), length);
ret = GST_FLOW_ERROR;
goto beach;
}
cur_offset += length;
qtdemux->offset += length;
......
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