aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2012-12-03 21:47:01 +0100
committerClément Bœsch <ubitux@gmail.com>2012-12-03 21:47:03 +0100
commitb5eb630e216cd997050744aca0864012d5e1f7c9 (patch)
tree83052ad400e79ba418828c99ab6ad5e3c6978ab0
parentd91388367fa64b98a09b45e2b7fb8435a62b7609 (diff)
downloadffmpeg-b5eb630e216cd997050744aca0864012d5e1f7c9.tar.gz
lavfi: remove some video w/h settings after avfilter_copy_buffer_ref_props.
video->[wh] will be set with the same values as the input after avfilter_copy_buffer_ref_props. These filters don't change the size of the input so there is no need for this code.
-rw-r--r--libavfilter/vf_delogo.c4
-rw-r--r--libavfilter/vf_gradfun.c3
-rw-r--r--libavfilter/vf_hqdn3d.c3
3 files changed, 0 insertions, 10 deletions
diff --git a/libavfilter/vf_delogo.c b/libavfilter/vf_delogo.c
index 3c9843f03a..d6b88d93eb 100644
--- a/libavfilter/vf_delogo.c
+++ b/libavfilter/vf_delogo.c
@@ -229,11 +229,7 @@ static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *in)
avfilter_unref_bufferp(&in);
return AVERROR(ENOMEM);
}
-
avfilter_copy_buffer_ref_props(out, in);
-
- out->video->w = outlink->w;
- out->video->h = outlink->h;
}
for (plane = 0; plane < 4 && in->data[plane]; plane++) {
diff --git a/libavfilter/vf_gradfun.c b/libavfilter/vf_gradfun.c
index 32d8796071..a9eeca54f2 100644
--- a/libavfilter/vf_gradfun.c
+++ b/libavfilter/vf_gradfun.c
@@ -198,10 +198,7 @@ static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *in)
avfilter_unref_bufferp(&in);
return AVERROR(ENOMEM);
}
-
avfilter_copy_buffer_ref_props(out, in);
- out->video->w = outlink->w;
- out->video->h = outlink->h;
}
for (p = 0; p < 4 && in->data[p]; p++) {
diff --git a/libavfilter/vf_hqdn3d.c b/libavfilter/vf_hqdn3d.c
index 939a31df28..4ea4ac9aa0 100644
--- a/libavfilter/vf_hqdn3d.c
+++ b/libavfilter/vf_hqdn3d.c
@@ -338,10 +338,7 @@ static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *in)
avfilter_unref_bufferp(&in);
return AVERROR(ENOMEM);
}
-
avfilter_copy_buffer_ref_props(out, in);
- out->video->w = outlink->w;
- out->video->h = outlink->h;
}
for (c = 0; c < 3; c++) {