ffmpeg | branch: master | James Almer <jamr...@gmail.com> | Sat Nov 9 16:57:47 2024 -0300| [5c8268ac568aa400c3443e40564625fb62129a8b] | committer: James Almer
avfilter/vf_zscale: remove unecessary argument from realign_frame Possible since the previous commit. Signed-off-by: James Almer <jamr...@gmail.com> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5c8268ac568aa400c3443e40564625fb62129a8b --- libavfilter/vf_zscale.c | 8 ++++---- 1 file 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); _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".