Fixes Ticket1381 Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 82570d2f09e76d262f4eb57b591b08c4aa64729a) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
@@ -45,6 +45,8 @@ static int png_parse(AVCodecParserContext *s, AVCodecContext *avctx,
int next = END_NOT_FOUND;
int i = 0;
+ s->pict_type = AV_PICTURE_TYPE_NONE;
+
*poutbuf_size = 0;
if (buf_size == 0)
return 0;