mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
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.
This commit is contained in:
parent
b0d0113b8e
commit
027f62e625
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue