From a3e7692ea8b7cf8d2df4204693187f22c730cc82 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Mon, 23 Jun 2025 04:01:15 +0200 Subject: [PATCH 5/8] avcodec/fic: Remove redundant logmessage ff_reget_buffer() emits its own logmessage on error. Signed-off-by: Andreas Rheinhardt --- libavcodec/fic.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/libavcodec/fic.c b/libavcodec/fic.c index 2d1a2951ed..7f5257f01c 100644 --- a/libavcodec/fic.c +++ b/libavcodec/fic.c @@ -422,11 +422,10 @@ static int fic_decode_frame(AVCodecContext *avctx, AVFrame *rframe, /* Draw cursor if needed. */ if (!skip_cursor) { - /* Make sure we use a user-supplied buffer. */ - if ((ret = ff_reget_buffer(avctx, ctx->final_frame, 0)) < 0) { - av_log(avctx, AV_LOG_ERROR, "Could not make frame writable.\n"); - return ret; - } + /* Make frame writable. */ + ret = ff_reget_buffer(avctx, ctx->final_frame, 0); + if (ret < 0) + return ret; fic_draw_cursor(avctx, src + CURSOR_OFFSET, cur_x, cur_y); } -- 2.45.2