You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-04 22:03:09 +02:00
avcodec/fic: Don't copy frame unnecessarily
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@ -420,14 +420,14 @@ static int fic_decode_frame(AVCodecContext *avctx, AVFrame *rframe,
|
|||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
/* Draw cursor if needed. */
|
||||||
|
if (!skip_cursor) {
|
||||||
/* Make sure we use a user-supplied buffer. */
|
/* Make sure we use a user-supplied buffer. */
|
||||||
if ((ret = ff_reget_buffer(avctx, ctx->final_frame, 0)) < 0) {
|
if ((ret = ff_reget_buffer(avctx, ctx->final_frame, 0)) < 0) {
|
||||||
av_log(avctx, AV_LOG_ERROR, "Could not make frame writable.\n");
|
av_log(avctx, AV_LOG_ERROR, "Could not make frame writable.\n");
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Draw cursor. */
|
|
||||||
if (!skip_cursor) {
|
|
||||||
fic_draw_cursor(avctx, src + CURSOR_OFFSET, cur_x, cur_y);
|
fic_draw_cursor(avctx, src + CURSOR_OFFSET, cur_x, cur_y);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user