diff mbox series

[FFmpeg-devel,1/3] avfilter/vf_zscale: remove some unneeded initializations

Message ID 20220707222931.16118-1-cus@passwd.hu
State Accepted
Commit 68fdc9de8462f9661f86d1b2e13c06695247e480
Headers show
Series [FFmpeg-devel,1/3] avfilter/vf_zscale: remove some unneeded initializations | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Marton Balint July 7, 2022, 10:29 p.m. UTC
Signed-off-by: Marton Balint <cus@passwd.hu>
---
 libavfilter/vf_zscale.c | 6 ------
 1 file changed, 6 deletions(-)

Comments

Marton Balint July 10, 2022, 8:46 p.m. UTC | #1
On Fri, 8 Jul 2022, Marton Balint wrote:

> Signed-off-by: Marton Balint <cus@passwd.hu>
> ---
> libavfilter/vf_zscale.c | 6 ------
> 1 file changed, 6 deletions(-)
>
> diff --git a/libavfilter/vf_zscale.c b/libavfilter/vf_zscale.c
> index 44cb4b9c61..6861eef278 100644
> --- a/libavfilter/vf_zscale.c
> +++ b/libavfilter/vf_zscale.c
> @@ -149,12 +149,6 @@ static av_cold int init(AVFilterContext *ctx)
> {
>     ZScaleContext *s = ctx->priv;
>     int ret;
> -    int i;
> -    for (i = 0; i < MAX_THREADS; i++) {
> -        s->tmp[i] = NULL;
> -        s->graph[i] = NULL;
> -        s->alpha_graph[i] = NULL;
> -    }
>     zimg_image_format_default(&s->src_format, ZIMG_API_VERSION);
>     zimg_image_format_default(&s->dst_format, ZIMG_API_VERSION);
>     zimg_image_format_default(&s->src_format_tmp, ZIMG_API_VERSION);
> --

Will apply the series.

Regards,
Marton

> 2.35.3
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
>
Paul B Mahol July 10, 2022, 9:51 p.m. UTC | #2
This was not critical at all, please revert.
diff mbox series

Patch

diff --git a/libavfilter/vf_zscale.c b/libavfilter/vf_zscale.c
index 44cb4b9c61..6861eef278 100644
--- a/libavfilter/vf_zscale.c
+++ b/libavfilter/vf_zscale.c
@@ -149,12 +149,6 @@  static av_cold int init(AVFilterContext *ctx)
 {
     ZScaleContext *s = ctx->priv;
     int ret;
-    int i;
-    for (i = 0; i < MAX_THREADS; i++) {
-        s->tmp[i] = NULL;
-        s->graph[i] = NULL;
-        s->alpha_graph[i] = NULL;
-    }
     zimg_image_format_default(&s->src_format, ZIMG_API_VERSION);
     zimg_image_format_default(&s->dst_format, ZIMG_API_VERSION);
     zimg_image_format_default(&s->src_format_tmp, ZIMG_API_VERSION);