mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 16:08:51 +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;
|
bit_rate = a52dec->bit_rate;
|
||||||
sample_rate = a52dec->sample_rate;
|
sample_rate = a52dec->sample_rate;
|
||||||
flags = 0;
|
flags = 0;
|
||||||
while (av >= 7) {
|
while (size >= 7) {
|
||||||
length = a52_syncinfo (data, &flags, &sample_rate, &bit_rate);
|
length = a52_syncinfo (data, &flags, &sample_rate, &bit_rate);
|
||||||
|
|
||||||
if (length == 0) {
|
if (length == 0) {
|
||||||
|
|
Loading…
Reference in a new issue