Skip to content
Snippets Groups Projects
Commit 73789b85 authored by foo86's avatar foo86
Browse files

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.
parent 23990950
No related branches found
No related tags found
No related merge requests found
...@@ -1816,7 +1816,7 @@ int ff_dca_core_parse(DCACoreDecoder *s, uint8_t *data, int size) ...@@ -1816,7 +1816,7 @@ int ff_dca_core_parse(DCACoreDecoder *s, uint8_t *data, int size)
return ret; return ret;
// Workaround for DTS in WAV // Workaround for DTS in WAV
if (s->frame_size > size && s->frame_size < size + 4) if (s->frame_size > size)
s->frame_size = size; s->frame_size = size;
if (ff_dca_seek_bits(&s->gb, s->frame_size * 8)) { if (ff_dca_seek_bits(&s->gb, s->frame_size * 8)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment