projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0638c2a
)
Handle WavPack INT32INFO chunks with nonzero post shift
author
Kostya Shishkov
<kostya.shishkov@gmail.com>
Thu, 23 Apr 2009 18:21:16 +0000
(18:21 +0000)
committer
Kostya Shishkov
<kostya.shishkov@gmail.com>
Thu, 23 Apr 2009 18:21:16 +0000
(18:21 +0000)
Originally committed as revision 18668 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/wavpack.c
patch
|
blob
|
history
diff --git
a/libavcodec/wavpack.c
b/libavcodec/wavpack.c
index
4a7a9e5
..
e0db016
100644
(file)
--- a/
libavcodec/wavpack.c
+++ b/
libavcodec/wavpack.c
@@
-780,12
+780,14
@@
static int wavpack_decode_frame(AVCodecContext *avctx,
got_hybrid = 1;
break;
case WP_ID_INT32INFO:
- if(size != 4
|| *buf
){
+ if(size != 4){
av_log(avctx, AV_LOG_ERROR, "Invalid INT32INFO, size = %i, sent_bits = %i\n", size, *buf);
buf += ssize;
continue;
}
- if(buf[1])
+ if(buf[0])
+ s->post_shift = buf[0];
+ else if(buf[1])
s->shift = buf[1];
else if(buf[2]){
s->and = s->or = 1;