From 899f0a716aebe252be098ddcc85ce18623deba31 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Mon, 1 Jul 2024 01:43:58 +0200 Subject: [PATCH 05/30] avcodec/vc1dec: Reenable debug-info output for field pictures Effectively reverts c59b5e3d1e0121ea23b5b326529f5bdca44cf982. This is possible now that ff_print_debug_info2() uses the MPVPicture dimensions. Signed-off-by: Andreas Rheinhardt --- libavcodec/vc1dec.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c index 2c314e7b55..f079a8745b 100644 --- a/libavcodec/vc1dec.c +++ b/libavcodec/vc1dec.c @@ -1366,14 +1366,12 @@ image: if (s->pict_type == AV_PICTURE_TYPE_B || s->low_delay) { if ((ret = av_frame_ref(pict, s->cur_pic.ptr->f)) < 0) goto err; - if (!v->field_mode) - ff_print_debug_info(s, s->cur_pic.ptr, pict); + ff_print_debug_info(s, s->cur_pic.ptr, pict); *got_frame = 1; } else if (s->last_pic.ptr) { if ((ret = av_frame_ref(pict, s->last_pic.ptr->f)) < 0) goto err; - if (!v->field_mode) - ff_print_debug_info(s, s->last_pic.ptr, pict); + ff_print_debug_info(s, s->last_pic.ptr, pict); *got_frame = 1; } } -- 2.45.2