vp5: don't try decoding a P frame before any I frame was parsed

fix issue802

Originally committed as revision 16813 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Aurelien Jacobs 2009-01-27 00:23:27 +00:00
parent 7a42067176
commit 73c87551e5
1 changed files with 2 additions and 1 deletions

View File

@ -64,7 +64,8 @@ static int vp5_parse_header(VP56Context *s, const uint8_t *buf, int buf_size,
avcodec_set_dimensions(s->avctx, 16*cols, 16*rows);
return 2;
}
}
} else if (!s->macroblocks)
return 0;
return 1;
}