aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2024-11-09 16:57:47 -0300
committerJames Almer <jamrial@gmail.com>2024-11-09 19:33:56 -0300
commit5c8268ac568aa400c3443e40564625fb62129a8b (patch)
tree367d6022cc4952a8f7442cc5afe627d60f5cdc22
parentc8e5c684b3db1a3131af5d05a3073114bd87477a (diff)
downloadffmpeg-5c8268ac568aa400c3443e40564625fb62129a8b.tar.gz
avfilter/vf_zscale: remove unecessary argument from realign_frame
Possible since the previous commit. Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--libavfilter/vf_zscale.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavfilter/vf_zscale.c b/libavfilter/vf_zscale.c
index 356dc152c6..236c8f74e3 100644
--- a/libavfilter/vf_zscale.c
+++ b/libavfilter/vf_zscale.c
@@ -660,7 +660,7 @@ static int graphs_build(AVFrame *in, AVFrame *out, const AVPixFmtDescriptor *des
return 0;
}
-static int realign_frame(AVFilterLink *link, const AVPixFmtDescriptor *desc, AVFrame **frame, int needs_copy)
+static int realign_frame(AVFilterLink *link, const AVPixFmtDescriptor *desc, AVFrame **frame)
{
AVFrame *aligned = NULL;
int ret = 0, plane, planes;
@@ -674,10 +674,10 @@ static int realign_frame(AVFilterLink *link, const AVPixFmtDescriptor *desc, AVF
if (!aligned)
return AVERROR(ENOMEM);
- if (needs_copy && (ret = av_frame_copy(aligned, *frame)) < 0)
+ if ((ret = av_frame_copy(aligned, *frame)) < 0)
goto fail;
- if (needs_copy && (ret = av_frame_copy_props(aligned, *frame)) < 0)
+ if ((ret = av_frame_copy_props(aligned, *frame)) < 0)
goto fail;
av_frame_free(frame);
@@ -811,7 +811,7 @@ static int filter_frame(AVFilterLink *link, AVFrame *in)
out->colorspace = outlink->colorspace;
out->color_range = outlink->color_range;
- if ((ret = realign_frame(link, desc, &in, 1)) < 0)
+ if ((ret = realign_frame(link, desc, &in)) < 0)
goto fail;
snprintf(buf, sizeof(buf)-1, "%d", outlink->w);