changeset 11875:f1eb84d7d1e5 libavcodec

nellymoserdec: Allow using unusual input block sizes
author mstorsjo
date Mon, 14 Jun 2010 12:34:55 +0000
parents a3152c2776c4
children 612bb7ca8a88
files nellymoserdec.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/nellymoserdec.c	Fri Jun 11 14:43:24 2010 +0000
+++ b/nellymoserdec.c	Mon Jun 14 12:34:55 2010 +0000
@@ -178,8 +178,12 @@
         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++) {