Browse Source

png_parser: dont falsely mark frames as keyframes

Fixes Ticket1381

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 82570d2f09)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.11.1
Michael Niedermayer 13 years ago
parent
commit
433ec3afa3
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavcodec/png_parser.c

+ 2
- 0
libavcodec/png_parser.c View File

@@ -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;


Loading…
Cancel
Save