Skip to content
Snippets Groups Projects
Commit 73c87551 authored by Aurelien Jacobs's avatar Aurelien Jacobs
Browse files

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
parent 7a420671
No related branches found
No related tags found
No related merge requests found
...@@ -64,7 +64,8 @@ static int vp5_parse_header(VP56Context *s, const uint8_t *buf, int buf_size, ...@@ -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); avcodec_set_dimensions(s->avctx, 16*cols, 16*rows);
return 2; return 2;
} }
} } else if (!s->macroblocks)
return 0;
return 1; return 1;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment