[FFmpeg-devel] [PATCH] initialize variables in utils.c

Benoit Fouet benoit.fouet
Wed May 2 12:03:44 CEST 2007


Michael Niedermayer wrote:
> Hi
>
> On Wed, May 02, 2007 at 11:33:29AM +0200, Benoit Fouet wrote:
>   
>> Hi,
>>
>> even if the call to av_gen_search is safe, those two variables can be
>> used uninitialized
>>     
>
> hmm, as long as this doesnt cause a real bug iam against initalizing them
> initalizing them makes it look as if they might be read and used
>
> [...]
>   
>   
well, in the function in which they are defined, this is the case
it's only because we know that the call to av_gen_search will not read
them because of the value of ts_min/max

Ben
-- 
Purple Labs S.A.
www.purplelabs.com




More information about the ffmpeg-devel mailing list