[FFmpeg-devel] [PATCH] libavfilter/vf_vpp_qsv: fix uninitialized variable problem
Soft Works
softworkz at hotmail.com
Wed Sep 15 08:58:54 EEST 2021
> -----Original Message-----
> From: ffmpeg-devel <ffmpeg-devel-bounces at ffmpeg.org> On Behalf Of
> Wenbin Chen
> Sent: Wednesday, 15 September 2021 07:15
> To: ffmpeg-devel at ffmpeg.org
> Cc: Wenbin Chen <wenbin.chen at intel.com>
> Subject: [FFmpeg-devel] [PATCH] libavfilter/vf_vpp_qsv: fix
> uninitialized variable problem
>
> This two variables may be used below with uninitialized value.
> Now fix them.
>
> Signed-off-by: Wenbin Chen <wenbin.chen at intel.com>
> ---
> libavfilter/vf_vpp_qsv.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/libavfilter/vf_vpp_qsv.c b/libavfilter/vf_vpp_qsv.c
> index c268b5dba8..22ffe0d7f3 100644
> --- a/libavfilter/vf_vpp_qsv.c
> +++ b/libavfilter/vf_vpp_qsv.c
> @@ -501,8 +501,8 @@ static int activate(AVFilterContext *ctx)
> VPPContext *s =ctx->priv;
> QSVVPPContext *qsv = s->qsv;
> AVFrame *in = NULL;
> - int ret, status;
> - int64_t pts;
> + int ret, status = 0;
> + int64_t pts = AV_NOPTS_VALUE;
>
> FF_FILTER_FORWARD_STATUS_BACK(outlink, inlink);
>
> --
LGTM
More information about the ffmpeg-devel
mailing list