[FFmpeg-devel] [PATCH] avcodec/mimic: Fix undefined pointer arithmetic

Andreas Rheinhardt andreas.rheinhardt at outlook.com
Fri Aug 12 20:36:53 EEST 2022


Michael Niedermayer:
> On Fri, Aug 12, 2022 at 02:40:43PM +0200, Andreas Rheinhardt wrote:
>> NULL + anything is UB.
>>
>> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
>> ---
>>  libavcodec/mimic.c | 3 ++-
>>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> if its NULL, LGTM
> 

It is (at least for the first keyframe). So I will therefore apply this.

- Andreas


More information about the ffmpeg-devel mailing list