mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-27 10:51:31 +08:00
avcodec: use the new AVFrame key_frame flag in all decoders and encoders
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@@ -570,6 +570,9 @@ static int decode_receive_frame_internal(AVCodecContext *avctx, AVFrame *frame)
|
||||
}
|
||||
|
||||
if (!ret) {
|
||||
if (avctx->codec_type != AVMEDIA_TYPE_VIDEO)
|
||||
frame->flags |= AV_FRAME_FLAG_KEY;
|
||||
frame->key_frame = !!(frame->flags & AV_FRAME_FLAG_KEY);
|
||||
#if FF_API_INTERLACED_FRAME
|
||||
FF_DISABLE_DEPRECATION_WARNINGS
|
||||
frame->interlaced_frame = !!(frame->flags & AV_FRAME_FLAG_INTERLACED);
|
||||
|
||||
Reference in New Issue
Block a user