Commit 4119a1e2 authored by reimar's avatar reimar

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.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19079 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 911001eb
......@@ -557,6 +557,8 @@ int attribute_align_arg avcodec_decode_video(AVCodecContext *avctx, AVFrame *pic
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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment