X-Git-Url: https://git.videolan.org/?p=ffmpeg.git;a=blobdiff_plain;f=libavcodec%2Flibwebpenc.c;h=b981f48245fea07f9ab0b15742effdbb3d78dd53;hp=74e73dc8cbb994a5f50ec96f48ee6e5e60f8668d;hb=30517a9f056c8d01b3790871db4aee95d9c176e6;hpb=be7c323176e2e5fcf30e3d2ff20975b2f936811b;ds=sidebyside diff --git a/libavcodec/libwebpenc.c b/libavcodec/libwebpenc.c index 74e73dc8cb..b981f48245 100644 --- a/libavcodec/libwebpenc.c +++ b/libavcodec/libwebpenc.c @@ -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;