summaryrefslogtreecommitdiff
path: root/libavfilter/vf_copy.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 /libavfilter/vf_copy.c
parent7a9946d386a3736abde0d7584bef526dc779a36f (diff)
parent30517a9f056c8d01b3790871db4aee95d9c176e6 (diff)
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 'libavfilter/vf_copy.c')
-rw-r--r--libavfilter/vf_copy.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavfilter/vf_copy.c b/libavfilter/vf_copy.c
index fcc85c5ae7..fb9a906048 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, (const uint8_t**) 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);
}