Browse code

png_parser: dont falsely mark frames as keyframes

Fixes Ticket1381

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

Michael Niedermayer authored on 2012/06/03 04:12:20
Showing 1 changed files
... ...
@@ -45,6 +45,8 @@ static int png_parse(AVCodecParserContext *s, AVCodecContext *avctx,
45 45
     int next = END_NOT_FOUND;
46 46
     int i = 0;
47 47
 
48
+    s->pict_type = AV_PICTURE_TYPE_NONE;
49
+
48 50
     *poutbuf_size = 0;
49 51
     if (buf_size == 0)
50 52
         return 0;