diff vc1dec.c @ 12521:db36486a6f89 libavcodec

Make WMV3 decoder attempt to decode WMVP as well
author kostya
date Sun, 26 Sep 2010 13:56:50 +0000
parents 7e93f85e48bf
children
line wrap: on
line diff
--- a/vc1dec.c	Sun Sep 26 13:54:35 2010 +0000
+++ b/vc1dec.c	Sun Sep 26 13:56:50 2010 +0000
@@ -3240,6 +3240,11 @@
         }
     }
 
+    if(v->res_sprite && (s->pict_type!=FF_I_TYPE)){
+        av_free(buf2);
+        return -1;
+    }
+
     // for hurry_up==5
     s->current_picture.pict_type= s->pict_type;
     s->current_picture.key_frame= s->pict_type == FF_I_TYPE;