diff options
author | Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> | 2009-08-07 13:04:18 +0200 |
---|---|---|
committer | Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> | 2009-08-07 13:09:15 +0200 |
commit | 1f9525d8218cf96018b109dc682f74746e11487e (patch) | |
tree | 3d093b0cae6b52460abc3a6a6fda17aac3ce5980 /gst | |
parent | 27efe0067c864baa57053bd7ce45ffb33aa6a6ca (diff) | |
download | gst-plugins-bad-1f9525d8218cf96018b109dc682f74746e11487e.tar.gz gst-plugins-bad-1f9525d8218cf96018b109dc682f74746e11487e.tar.bz2 gst-plugins-bad-1f9525d8218cf96018b109dc682f74746e11487e.zip |
flacparse: sync baseparse (some more)
Diffstat (limited to 'gst')
-rw-r--r-- | 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 85fb8d71..8fb2b2ae 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) { |