comparison 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
comparison
equal deleted inserted replaced
8673:5b7d5a33a3e2 8674:f36e2c1749b5
62 16*cols != s->avctx->coded_width || 62 16*cols != s->avctx->coded_width ||
63 16*rows != s->avctx->coded_height) { 63 16*rows != s->avctx->coded_height) {
64 avcodec_set_dimensions(s->avctx, 16*cols, 16*rows); 64 avcodec_set_dimensions(s->avctx, 16*cols, 16*rows);
65 return 2; 65 return 2;
66 } 66 }
67 } 67 } else if (!s->macroblocks)
68 return 0;
68 return 1; 69 return 1;
69 } 70 }
70 71
71 /* Gives very similar result than the vp6 version except in a few cases */ 72 /* Gives very similar result than the vp6 version except in a few cases */
72 static int vp5_adjust(int v, int t) 73 static int vp5_adjust(int v, int t)