diff --git a/libavcodec/dca_core.c b/libavcodec/dca_core.c index 6cb1f30a3c161da7e73745d3e46f87f872048f63..accc5efd515625f7bb89487c240a5ea18e46f05a 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)) {