Re: [FFmpeg-devel] [PATCH 1/6] avcodec/huffyuvdec: Don't zero unnecessarily

2024-04-05 Thread Andreas Rheinhardt
Andreas Rheinhardt:
> A decoder's private data has already been zeroed (apart from options)
> before init is called.
> 
> Signed-off-by: Andreas Rheinhardt 
> ---
>  libavcodec/huffyuvdec.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/libavcodec/huffyuvdec.c b/libavcodec/huffyuvdec.c
> index 3bed27be21..29e5419d91 100644
> --- a/libavcodec/huffyuvdec.c
> +++ b/libavcodec/huffyuvdec.c
> @@ -346,7 +346,6 @@ static av_cold int decode_init(AVCodecContext *avctx)
>  ff_bswapdsp_init(>bdsp);
>  ff_huffyuvdsp_init(>hdsp, avctx->pix_fmt);
>  ff_llviddsp_init(>llviddsp);
> -memset(s->vlc, 0, 4 * sizeof(VLC));
>  
>  s->interlaced = avctx->height > 288;
>  s->bgr32  = 1;

Will apply this patchset tomorrow unless there are objections.

- Andreas

___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".


[FFmpeg-devel] [PATCH 1/6] avcodec/huffyuvdec: Don't zero unnecessarily

2024-04-03 Thread Andreas Rheinhardt
A decoder's private data has already been zeroed (apart from options)
before init is called.

Signed-off-by: Andreas Rheinhardt 
---
 libavcodec/huffyuvdec.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/libavcodec/huffyuvdec.c b/libavcodec/huffyuvdec.c
index 3bed27be21..29e5419d91 100644
--- a/libavcodec/huffyuvdec.c
+++ b/libavcodec/huffyuvdec.c
@@ -346,7 +346,6 @@ static av_cold int decode_init(AVCodecContext *avctx)
 ff_bswapdsp_init(>bdsp);
 ff_huffyuvdsp_init(>hdsp, avctx->pix_fmt);
 ff_llviddsp_init(>llviddsp);
-memset(s->vlc, 0, 4 * sizeof(VLC));
 
 s->interlaced = avctx->height > 288;
 s->bgr32  = 1;
-- 
2.40.1

___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".