summaryrefslogtreecommitdiff
path: root/libavcodec/libwebpenc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-02-24 10:47:47 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-02-24 10:47:47 +0100
commit2a3cb1cfcaf45fb548b0cddc7c9e155f43582aec (patch)
tree4b09f20eeff7289344a0670f2eb4217b6a763d64 /libavcodec/libwebpenc.c
parent7a9946d386a3736abde0d7584bef526dc779a36f (diff)
parent30517a9f056c8d01b3790871db4aee95d9c176e6 (diff)
downloadffmpeg-2a3cb1cfcaf45fb548b0cddc7c9e155f43582aec.tar.gz
Merge remote-tracking branch 'qatar/master'
* qatar/master: Use av_frame_copy() to simplify code where appropriate. Conflicts: libavfilter/vf_copy.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/libwebpenc.c')
-rw-r--r--libavcodec/libwebpenc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/libwebpenc.c b/libavcodec/libwebpenc.c
index 5e0c7a8236..5283da5070 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;