diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2025-06-23 04:01:15 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2025-07-03 19:42:28 +0200 |
commit | 4c69f302a91b5981c99ce77cfde3f22c772363eb (patch) | |
tree | dc2dbe2f4fc8286087f5264054b3d14e3e6b6613 | |
parent | 12ae987a6a7d941d8252eb3e9b4e74445d1af0c1 (diff) | |
download | ffmpeg-4c69f302a91b5981c99ce77cfde3f22c772363eb.tar.gz |
avcodec/fic: Remove redundant logmessage
ff_reget_buffer() emits its own logmessage on error.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavcodec/fic.c | 9 |
1 files 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); } |