Mercurial > libavcodec.hg
changeset 9787:f114b5f2ac47 libavcodec
Set AV_PKT_FLAG_KEY in avcodec_decode_video.
This fixes decoding of MPNG, which currently is incorrectly decoded as
CorePNG delta frames.
CorePNG can not be correctly decoded via this old API either way.
author | reimar |
---|---|
date | Wed, 03 Jun 2009 11:23:16 +0000 |
parents | 798d6520c7f4 |
children | b9563486a234 |
files | utils.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/utils.c Wed Jun 03 11:20:35 2009 +0000 +++ b/utils.c Wed Jun 03 11:23:16 2009 +0000 @@ -557,6 +557,8 @@ av_init_packet(&avpkt); avpkt.data = buf; avpkt.size = buf_size; + // HACK for CorePNG to decode as normal PNG by default + avpkt.flags = AV_PKT_FLAG_KEY; return avcodec_decode_video2(avctx, picture, got_picture_ptr, &avpkt); }