diff options
author | foo86 <foobaz86@gmail.com> | 2017-10-09 16:26:06 +0300 |
---|---|---|
committer | foo86 <foobaz86@gmail.com> | 2017-10-09 16:53:23 +0300 |
commit | 73789b85a759f3874112618120194e1712d7adcd (patch) | |
tree | fdad988e65f850ba4f2d840a1dd6d367e8a52a5d /libavcodec/dca_core.c | |
parent | 23990950e35eff0b96f843c396a62a6429ea25ec (diff) | |
download | ffmpeg-73789b85a759f3874112618120194e1712d7adcd.tar.gz |
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.
Diffstat (limited to 'libavcodec/dca_core.c')
-rw-r--r-- | libavcodec/dca_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dca_core.c b/libavcodec/dca_core.c index 6cb1f30a3c..accc5efd51 100644 --- a/libavcodec/dca_core.c +++ b/libavcodec/dca_core.c @@ -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)) { |