]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/wmadec.c
seperated out the C-based VP3 DSP functions into a different file; also
[ffmpeg] / libavcodec / wmadec.c
index 15b15f23f0190a0713ac9fbfdc7f02b48fd4e326..25498c4d28cf80cad58cc64550f99941b92c6097 100644 (file)
@@ -1187,6 +1187,11 @@ static int wma_decode_superframe(AVCodecContext *avctx,
     
     tprintf("***decode_superframe:\n");
 
+    if(buf_size==0){
+        s->last_superframe_len = 0;
+        return 0;
+    }
+    
     samples = data;
 
     init_get_bits(&s->gb, buf, buf_size*8);