mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/evc: Set the AV_FRAME_FLAG_KEY flag for a decoded frame when the decoded packet contains a keyframe
Signed-off-by: Dawid Kozinski <d.kozinski@samsung.com>
This commit is contained in:
parent
214cbe29dc
commit
0797651c12
|
@ -413,6 +413,10 @@ static int libxevd_receive_frame(AVCodecContext *avctx, AVFrame *frame)
|
||||||
return AVERROR(EAGAIN);
|
return AVERROR(EAGAIN);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
if (stat.stype == XEVD_ST_I) {
|
||||||
|
frame->pict_type = AV_PICTURE_TYPE_I;
|
||||||
|
frame->flags |= AV_FRAME_FLAG_KEY;
|
||||||
|
}
|
||||||
return libxevd_return_frame(avctx, frame, imgb, &pkt_au);
|
return libxevd_return_frame(avctx, frame, imgb, &pkt_au);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue