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 | /* Draw cursor if needed. */ | 423 | /* Draw cursor if needed. */ |
| 424 | if (!skip_cursor) { | 424 | if (!skip_cursor) { |
| 425 | /* Make sure we use a user-supplied buffer. */ | 425 | /* Make frame writable. */ |
| 426 | if ((ret = ff_reget_buffer(avctx, ctx->final_frame, 0)) < 0) { | 426 | ret = ff_reget_buffer(avctx, ctx->final_frame, 0); |
| 427 | av_log(avctx, AV_LOG_ERROR, "Could not make frame writable.\n"); | 427 | if (ret < 0) |
| 428 | return ret; | 428 | return ret; |
| 429 | } | ||
| 430 | 429 | ||
| 431 | fic_draw_cursor(avctx, src + CURSOR_OFFSET, cur_x, cur_y); | 430 | fic_draw_cursor(avctx, src + CURSOR_OFFSET, cur_x, cur_y); |
| 432 | } | 431 | } |