diff options
author | Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> | 2012-03-10 11:36:25 +0100 |
---|---|---|
committer | Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> | 2012-03-10 11:37:13 +0100 |
commit | a7eda9ed4942e24f0a3971c3591af54cc4cd9a5b (patch) | |
tree | df87963eb95fb3ff869100c0f8b0a31a47fe25e9 /ext/dts | |
parent | b2deaadd0a3e787aef7efedba7b8ea5bae2c01ea (diff) | |
download | gstreamer-plugins-bad-a7eda9ed4942e24f0a3971c3591af54cc4cd9a5b.tar.gz |
dtsdec: avoid runaway loop when resyncing during parse
... by checking for the correct (decremented) size variable.
Fixes #671756.
Diffstat (limited to 'ext/dts')
-rw-r--r-- | ext/dts/gstdtsdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dts/gstdtsdec.c b/ext/dts/gstdtsdec.c index d589901c2..0455ab0ca 100644 --- a/ext/dts/gstdtsdec.c +++ b/ext/dts/gstdtsdec.c @@ -286,7 +286,7 @@ gst_dtsdec_parse (GstAudioDecoder * bdec, GstAdapter * adapter, bit_rate = dts->bit_rate; sample_rate = dts->sample_rate; flags = 0; - while (av >= 7) { + while (size >= 7) { length = dca_syncinfo (dts->state, data, &flags, &sample_rate, &bit_rate, &frame_length); |