Re: [FFmpeg-devel] [PATCH] lavu/opt: Fix return of uninitialised value

2024-08-28 Thread Anton Khirnov
Quoting Marvin Scholz (2024-08-28 03:08:39) > In one of the failure paths of av_opt_get_array, the ret variable > was accidentally declared again, shadowing the outer one and once when > jumping to the fail label would return the still uninitialised outer > one. > > To fix this simply remove the l

[FFmpeg-devel] [PATCH] lavu/opt: Fix return of uninitialised value

2024-08-27 Thread Marvin Scholz
In one of the failure paths of av_opt_get_array, the ret variable was accidentally declared again, shadowing the outer one and once when jumping to the fail label would return the still uninitialised outer one. To fix this simply remove the local declaration of ret that shadowed the outer one. In