From 1f9525d8218cf96018b109dc682f74746e11487e Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Fri, 7 Aug 2009 13:04:18 +0200 Subject: flacparse: sync baseparse (some more) --- gst/flacparse/gstbaseparse.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gst/flacparse/gstbaseparse.c b/gst/flacparse/gstbaseparse.c index 85fb8d711..8fb2b2aef 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) { -- cgit v1.2.3