mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-18 14:54:19 +08:00
Use av_frame_copy() to simplify code where appropriate.
This commit is contained in:
@@ -161,9 +161,7 @@ static int libwebp_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
|
||||
ret = av_frame_get_buffer(alt_frame, 32);
|
||||
if (ret < 0)
|
||||
goto end;
|
||||
av_image_copy(alt_frame->data, alt_frame->linesize,
|
||||
frame->data, frame->linesize,
|
||||
avctx->pix_fmt, frame->width, frame->height);
|
||||
av_frame_copy(alt_frame, frame);
|
||||
frame = alt_frame;
|
||||
}
|
||||
pic->use_argb = 0;
|
||||
|
Reference in New Issue
Block a user