[FFmpeg-cvslog] png_parser: dont falsely mark frames as keyframes
Michael Niedermayer
git at videolan.org
Thu Jun 7 01:44:21 CEST 2012
ffmpeg | branch: release/0.11 | Michael Niedermayer <michaelni at gmx.at> | Sat Jun 2 21:12:20 2012 +0200| [433ec3afa3c8faaa8efb6de099b01b4d7d1e8053] | committer: Michael Niedermayer
png_parser: dont falsely mark frames as keyframes
Fixes Ticket1381
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit 82570d2f09e76d262f4eb57b591b08c4aa64729a)
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=433ec3afa3c8faaa8efb6de099b01b4d7d1e8053
---
libavcodec/png_parser.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavcodec/png_parser.c b/libavcodec/png_parser.c
index 7f6fabb..47056fa 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;
More information about the ffmpeg-cvslog
mailing list