summaryrefslogtreecommitdiff
path: root/libavcodec/wmadec.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/wmadec.c')
-rw-r--r--libavcodec/wmadec.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/wmadec.c b/libavcodec/wmadec.c
index 15b15f23f0..25498c4d28 100644
--- a/libavcodec/wmadec.c
+++ b/libavcodec/wmadec.c
@@ -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);