dtsdec: avoid runaway loop when resyncing during parse

... by checking for the correct (decremented) size variable.

Fixes #671756.
This commit is contained in:
Mark Nauwelaerts 2012-03-10 11:36:25 +01:00
parent b2deaadd0a
commit a7eda9ed49

View file

@ -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);