Commit e069a4bf authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/snowdec: set AVFrame.pict_type correctly

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 5c1a8d3b
......@@ -442,6 +442,9 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
if((res = ff_snow_frame_start(s)) < 0)
return res;
s->current_picture->pict_type = s->keyframe ? AV_PICTURE_TYPE_I : AV_PICTURE_TYPE_P;
//keyframe flag duplication mess FIXME
if(avctx->debug&FF_DEBUG_PICT_INFO)
av_log(avctx, AV_LOG_ERROR,
......
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