projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2399095
)
avcodec/dca_core: always limit frame size to data size
author
foo86
<foobaz86@gmail.com>
Mon, 9 Oct 2017 13:26:06 +0000
(16:26 +0300)
committer
foo86
<foobaz86@gmail.com>
Mon, 9 Oct 2017 13:53:23 +0000
(16:53 +0300)
Silences pointless error message when decoding DTS-in-WAV stream with
excessive frame size stored in header.
libavcodec/dca_core.c
patch
|
blob
|
history
diff --git
a/libavcodec/dca_core.c
b/libavcodec/dca_core.c
index
6cb1f30
..
accc5ef
100644
(file)
--- 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)) {