mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-27 05:00:37 +00:00
avcodec/dca_core: always limit frame size to data size
Silences pointless error message when decoding DTS-in-WAV stream with excessive frame size stored in header.
This commit is contained in:
parent
23990950e3
commit
73789b85a7
@ -1816,7 +1816,7 @@ int ff_dca_core_parse(DCACoreDecoder *s, uint8_t *data, int size)
|
||||
return ret;
|
||||
|
||||
// Workaround for DTS in WAV
|
||||
if (s->frame_size > size && s->frame_size < size + 4)
|
||||
if (s->frame_size > size)
|
||||
s->frame_size = size;
|
||||
|
||||
if (ff_dca_seek_bits(&s->gb, s->frame_size * 8)) {
|
||||
|
Loading…
Reference in New Issue
Block a user