summaryrefslogtreecommitdiff
path: root/fftools/ffmpeg.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2023-04-12 19:54:10 -0300
committerJames Almer <jamrial@gmail.com>2023-05-04 19:19:18 -0300
commitc7a8681860d68f3ad00ef49215dbfda52c71c90b (patch)
tree42c40f39b4c826d4294ff9e29c404660c0291f39 /fftools/ffmpeg.c
parentaf8db9106c27a1ef11ec69ecbbe7a57462c14367 (diff)
downloadffmpeg-c7a8681860d68f3ad00ef49215dbfda52c71c90b.tar.gz
fftools: use the new AVFrame keyframe flag
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'fftools/ffmpeg.c')
-rw-r--r--fftools/ffmpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c
index 23aa343bbc..8323c32ffd 100644
--- a/fftools/ffmpeg.c
+++ b/fftools/ffmpeg.c
@@ -1143,7 +1143,7 @@ static int decode_video(InputStream *ist, const AVPacket *pkt, int *got_output,
av_ts2timestr(best_effort_timestamp, &ist->st->time_base),
av_ts2str(decoded_frame->duration),
av_ts2timestr(decoded_frame->duration, &ist->st->time_base),
- decoded_frame->key_frame, decoded_frame->pict_type,
+ !!(decoded_frame->flags & AV_FRAME_FLAG_KEY), decoded_frame->pict_type,
ist->st->time_base.num, ist->st->time_base.den);
}