mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue