aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-06-02 21:12:20 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-06-07 00:55:25 +0200
commit433ec3afa3c8faaa8efb6de099b01b4d7d1e8053 (patch)
treeb484347ea6140582940b551e5e036226e4e62789 /libavcodec
parentd0cb4dc471aee0d0325659755cece19db593b450 (diff)
downloadffmpeg-433ec3afa3c8faaa8efb6de099b01b4d7d1e8053.tar.gz
png_parser: dont falsely mark frames as keyframes
Fixes Ticket1381 Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 82570d2f09e76d262f4eb57b591b08c4aa64729a) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/png_parser.c2
1 files changed, 2 insertions, 0 deletions
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;