mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-18 05:24:42 +00:00
Handle WavPack INT32INFO chunks with nonzero post shift
Originally committed as revision 18668 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
0638c2ae3c
commit
6e0f746d3e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user