ff_reget_buffer() emits its own logmessage on error.
Unified · Split
| @@ -422,11 +422,10 @@ static int fic_decode_frame(AVCodecContext *avctx, AVFrame *rframe, · 421 unmodified lines | ||
| 422 | 422 | |
| 423 | 423 | /* Draw cursor if needed. */ |
| 424 | 424 | if (!skip_cursor) { |
| 425 | − /* Make sure we use a user-supplied buffer. */ | |
| 426 | − if ((ret = ff_reget_buffer(avctx, ctx->final_frame, 0)) < 0) { | |
| 427 | − av_log(avctx, AV_LOG_ERROR, "Could not make frame writable.\n"); | |
| 428 | − return ret; | |
| 429 | − } | |
| 425 | + /* Make frame writable. */ | |
| 426 | + ret = ff_reget_buffer(avctx, ctx->final_frame, 0); | |
| 427 | + if (ret < 0) | |
| 428 | + return ret; | |
| 430 | 429 | |
| 431 | 430 | fic_draw_cursor(avctx, src + CURSOR_OFFSET, cur_x, cur_y); |
| 432 | 431 | } |