changeset 1750:610617f1dbd0 libavcodec

segfault fix
author michael
date Sun, 18 Jan 2004 21:57:32 +0000
parents 7b11032507e2
children 3f1125adbc84
files wmadec.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/wmadec.c	Sun Jan 18 21:41:44 2004 +0000
+++ b/wmadec.c	Sun Jan 18 21:57:32 2004 +0000
@@ -1187,6 +1187,11 @@
     
     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);