From 82570d2f09e76d262f4eb57b591b08c4aa64729a Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 2 Jun 2012 21:12:20 +0200 Subject: [PATCH] png_parser: dont falsely mark frames as keyframes Fixes Ticket1381 Signed-off-by: Michael Niedermayer --- libavcodec/png_parser.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/png_parser.c b/libavcodec/png_parser.c index 7f6fabb0a2..47056fa251 100644 --- a/libavcodec/png_parser.c +++ b/libavcodec/png_parser.c @@ -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;