diff options
author | James Almer <jamrial@gmail.com> | 2023-04-12 19:54:10 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2023-05-04 19:19:18 -0300 |
commit | c7a8681860d68f3ad00ef49215dbfda52c71c90b (patch) | |
tree | 42c40f39b4c826d4294ff9e29c404660c0291f39 /fftools/ffprobe.c | |
parent | af8db9106c27a1ef11ec69ecbbe7a57462c14367 (diff) |
fftools: use the new AVFrame keyframe flag
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'fftools/ffprobe.c')
-rw-r--r-- | fftools/ffprobe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c index 10492011d7..43bf10db54 100644 --- a/fftools/ffprobe.c +++ b/fftools/ffprobe.c @@ -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); |