]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/vc1dec.c
Use pre-allocated temp buffers in mdct512().
[ffmpeg] / libavcodec / vc1dec.c
index 8c9cbcd9db752f64ea7c33825ba9556960969fb2..c9a547b615fe45b1b8151dc48ca4aa656f0e3d89 100644 (file)
@@ -3240,6 +3240,11 @@ static int vc1_decode_frame(AVCodecContext *avctx,
         }
     }
 
+    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;