diff vp5.c @ 8674:f36e2c1749b5 libavcodec

vp5: don't try decoding a P frame before any I frame was parsed fix issue802
author aurel
date Tue, 27 Jan 2009 00:23:27 +0000
parents 8b6bcfa22aa8
children e9d9d946f213
line wrap: on
line diff
--- a/vp5.c	Mon Jan 26 22:51:16 2009 +0000
+++ b/vp5.c	Tue Jan 27 00:23:27 2009 +0000
@@ -64,7 +64,8 @@
             avcodec_set_dimensions(s->avctx, 16*cols, 16*rows);
             return 2;
         }
-    }
+    } else if (!s->macroblocks)
+        return 0;
     return 1;
 }