Commit 7ab1972d authored by mstorsjo's avatar mstorsjo

nellymoserdec: Allow using unusual input block sizes


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@23602 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent db8d20df
...@@ -178,9 +178,13 @@ static int decode_tag(AVCodecContext * avctx, ...@@ -178,9 +178,13 @@ static int decode_tag(AVCodecContext * avctx,
case 512: // 44100Hz case 512: // 44100Hz
blocks = 8; break; blocks = 8; break;
default: default:
if (buf_size % 64) {
av_log(avctx, AV_LOG_DEBUG, "Tag size %d.\n", buf_size); av_log(avctx, AV_LOG_DEBUG, "Tag size %d.\n", buf_size);
return buf_size; return buf_size;
} }
blocks = buf_size / 64;
break;
}
for (i=0 ; i<blocks ; i++) { for (i=0 ; i<blocks ; i++) {
nelly_decode_block(s, &buf[i*NELLY_BLOCK_LEN], s->float_buf); nelly_decode_block(s, &buf[i*NELLY_BLOCK_LEN], s->float_buf);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment