summaryrefslogtreecommitdiff
path: root/libavcodec/nellymoserdec.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/nellymoserdec.c')
-rw-r--r--libavcodec/nellymoserdec.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/nellymoserdec.c b/libavcodec/nellymoserdec.c
index 82a3f07950..cda8d11975 100644
--- a/libavcodec/nellymoserdec.c
+++ b/libavcodec/nellymoserdec.c
@@ -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++) {