mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
dtsdec: avoid runaway loop when resyncing during parse
... by checking for the correct (decremented) size variable. Fixes #671756.
This commit is contained in:
parent
b2deaadd0a
commit
a7eda9ed49
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue