diff --git a/ext/dts/gstdtsdec.c b/ext/dts/gstdtsdec.c index d589901c2c..0455ab0cab 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);