From: <mn...@ke...> - 2009-08-07 11:10:56
|
Module: gst-plugins-bad Branch: master Commit: 1f9525d8218cf96018b109dc682f74746e11487e URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=1f9525d8218cf96018b109dc682f74746e11487e Author: Mark Nauwelaerts <mar...@co...> Date: Fri Aug 7 13:04:18 2009 +0200 flacparse: sync baseparse (some more) --- gst/flacparse/gstbaseparse.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/gst/flacparse/gstbaseparse.c b/gst/flacparse/gstbaseparse.c index 85fb8d7..8fb2b2a 100644 --- a/gst/flacparse/gstbaseparse.c +++ b/gst/flacparse/gstbaseparse.c @@ -1026,6 +1026,12 @@ gst_base_parse_chain (GstPad * pad, GstBuffer * buffer) skip = -1; if (bclass->check_valid_frame (parse, tmpbuf, &fsize, &skip)) { + if (gst_adapter_available (parse->adapter) < fsize) { + GST_DEBUG_OBJECT (parse, + "found valid frame but not enough data available (only %d bytes)", + gst_adapter_available (parse->adapter)); + goto done; + } break; } if (skip > 0) { |