summaryrefslogtreecommitdiff
path: root/fftools/ffprobe.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2023-04-12 11:42:35 -0300
committerJames Almer <jamrial@gmail.com>2023-05-04 18:15:00 -0300
commit3675dd0e0c8892151441a02ed0c5dee72a111c81 (patch)
tree2eea0a28017971eb44dc52840e1dbd6abfb03d3f /fftools/ffprobe.c
parent36827ea783afbb39e5b75e8a982e316739009773 (diff)
downloadffmpeg-3675dd0e0c8892151441a02ed0c5dee72a111c81.tar.gz
fftools: use the new AVFrame interlace flags
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'fftools/ffprobe.c')
-rw-r--r--fftools/ffprobe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c
index 6e72c37721..10492011d7 100644
--- a/fftools/ffprobe.c
+++ b/fftools/ffprobe.c
@@ -2640,8 +2640,8 @@ static void show_frame(WriterContext *w, AVFrame *frame, AVStream *stream,
print_int("display_picture_number", frame->display_picture_number);
)
#endif
- print_int("interlaced_frame", frame->interlaced_frame);
- print_int("top_field_first", frame->top_field_first);
+ print_int("interlaced_frame", !!(frame->flags & AV_FRAME_FLAG_INTERLACED));
+ print_int("top_field_first", !!(frame->flags & AV_FRAME_FLAG_TOP_FIELD_FIRST));
print_int("repeat_pict", frame->repeat_pict);
print_color_range(w, frame->color_range);