a52dec: fix read buffer overflow upon syncing
The wrong size was being decremented, leading to a runaway read loop.
This commit is contained in:
parent
ac281f3562
commit
1651493ae0
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user