png_parser: dont falsely mark frames as keyframes
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 2 Jun 2012 19:12:20 +0000 (21:12 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 2 Jun 2012 19:12:20 +0000 (21:12 +0200)
Fixes Ticket1381

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/png_parser.c

index 7f6fabb..47056fa 100644 (file)
@@ -45,6 +45,8 @@ static int png_parse(AVCodecParserContext *s, AVCodecContext *avctx,
     int next = END_NOT_FOUND;
     int i = 0;
 
     int next = END_NOT_FOUND;
     int i = 0;
 
+    s->pict_type = AV_PICTURE_TYPE_NONE;
+
     *poutbuf_size = 0;
     if (buf_size == 0)
         return 0;
     *poutbuf_size = 0;
     if (buf_size == 0)
         return 0;