fftools: use the new AVFrame keyframe flag

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2023-04-12 19:54:10 -03:00
parent af8db9106c
commit c7a8681860
3 changed files with 5 additions and 5 deletions

View file

@ -2594,7 +2594,7 @@ static void show_frame(WriterContext *w, AVFrame *frame, AVStream *stream,
if (s) print_str ("media_type", s);
else print_str_opt("media_type", "unknown");
print_int("stream_index", stream->index);
print_int("key_frame", frame->key_frame);
print_int("key_frame", !!(frame->flags & AV_FRAME_FLAG_KEY));
print_ts ("pts", frame->pts);
print_time("pts_time", frame->pts, &stream->time_base);
print_ts ("pkt_dts", frame->pkt_dts);