summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorfoo86 <foobaz86@gmail.com>2017-10-09 16:26:06 +0300
committerfoo86 <foobaz86@gmail.com>2017-10-09 16:53:23 +0300
commit73789b85a759f3874112618120194e1712d7adcd (patch)
treefdad988e65f850ba4f2d840a1dd6d367e8a52a5d /libavcodec
parent23990950e35eff0b96f843c396a62a6429ea25ec (diff)
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')
-rw-r--r--libavcodec/dca_core.c2
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)) {