[FFmpeg-devel] Fwd: New Defects reported by Coverity Scan for FFmpeg/FFmpeg

Mark Thompson sw at jkqxz.net
Sat Mar 24 16:05:39 EET 2018

Hi Dylan,

See below for a report from the Coverity static analysis tool - the variable err isn't initialised in all paths leading to the fail-and-return.  Would you like to fix this?

Also, following is a patch to your filter for you to review (try it, decide whether it's correct, make any appropriate comments).


- Mark


*** CID 1430382:  Uninitialized variables  (UNINIT)
/libavfilter/vf_avgblur_opencl.c: 254 in avgblur_opencl_filter_frame()
249     fail:
250         clFinish(ctx->command_queue);
251         av_frame_free(&input);
252         av_frame_free(&output);
253         av_frame_free(&intermediate);
>>>     CID 1430382:  Uninitialized variables  (UNINIT)
>>>     Using uninitialized value "err".
254         return err;
255     }
257     static av_cold void avgblur_opencl_uninit(AVFilterContext *avctx)
258     {
259         AverageBlurOpenCLContext *ctx = avctx->priv;

More information about the ffmpeg-devel mailing list