diff --git a/ext/a52dec/gsta52dec.c b/ext/a52dec/gsta52dec.c index 18ea1da20b..3ada93f188 100644 --- a/ext/a52dec/gsta52dec.c +++ b/ext/a52dec/gsta52dec.c @@ -309,7 +309,7 @@ gst_a52dec_parse (GstAudioDecoder * bdec, GstAdapter * adapter, bit_rate = a52dec->bit_rate; sample_rate = a52dec->sample_rate; flags = 0; - while (av >= 7) { + while (size >= 7) { length = a52_syncinfo (data, &flags, &sample_rate, &bit_rate); if (length == 0) {