diff options
author | Anton Khirnov <anton@khirnov.net> | 2014-02-11 15:08:12 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2014-02-24 07:25:07 +0100 |
commit | 30517a9f056c8d01b3790871db4aee95d9c176e6 (patch) | |
tree | ea6c15294c71b790d2fa9b4139095a901080824c /libavfilter | |
parent | 8feac29cc46270cc89d6016340e7bac780877131 (diff) | |
download | ffmpeg-30517a9f056c8d01b3790871db4aee95d9c176e6.tar.gz |
Use av_frame_copy() to simplify code where appropriate.
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_copy.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libavfilter/vf_copy.c b/libavfilter/vf_copy.c index 55175a08c8..5e60f2082e 100644 --- a/libavfilter/vf_copy.c +++ b/libavfilter/vf_copy.c @@ -37,9 +37,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) return AVERROR(ENOMEM); } av_frame_copy_props(out, in); - av_image_copy(out->data, out->linesize, in->data, in->linesize, - in->format, in->width, in->height); - + av_frame_copy(out, in); av_frame_free(&in); return ff_filter_frame(outlink, out); } |