changeset 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 5b7d5a33a3e2
children 3260670e39df
files vp5.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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;
 }