wmadec: avoid infinit loop.
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 22 May 2011 00:33:03 +0000 (02:33 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 22 May 2011 00:33:03 +0000 (02:33 +0200)
Fixes ticket183

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/wmadec.c

index 3da1a60..840025d 100644 (file)
@@ -827,7 +827,7 @@ static int wma_decode_superframe(AVCodecContext *avctx,
         return 0;
     }
     if (buf_size < s->block_align)
-        return 0;
+        return AVERROR(EINVAL);
     buf_size = s->block_align;
 
     samples = data;