Commit f7a30c0b authored by Martin Storsjö's avatar Martin Storsjö

nellymoserdec: Allow using unusual input block sizes

Originally committed as revision 23602 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 48e77473
......@@ -178,8 +178,12 @@ static int decode_tag(AVCodecContext * avctx,
case 512: // 44100Hz
blocks = 8; break;
default:
if (buf_size % 64) {
av_log(avctx, AV_LOG_DEBUG, "Tag size %d.\n", buf_size);
return buf_size;
}
blocks = buf_size / 64;
break;
}
for (i=0 ; i<blocks ; i++) {
......
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