[FFmpeg-devel] [PATCH] Fix potential av_find_opt() crash if context is NULL

Måns Rullgård mans
Sun Nov 9 19:16:25 CET 2008


Stefano Sabatini <stefano.sabatini-lala at poste.it> writes:

> On date Sunday 2008-11-09 16:29:21 +0100, Michael Niedermayer encoded:
>> On Sun, Nov 09, 2008 at 03:44:43PM +0100, Stefano Sabatini wrote:
> [...]
>> > Currently sws_opts is declared as extern in cmdutils.h and defined in
>> > cmdutils.c, then used in the ff*.c tools, so the variable *does* exist
>> > semantically for every application, with or without
>> 
>> it does not exist _semantically_ in the sense that 0 has no logarithm.
>
> Uh, pretty weird definition of semantical existence ;-). 

The variable may exist syntactically, but that does not imply that it
has any semantical meaning.  Just like the logarithm of 0.

-- 
M?ns Rullg?rd
mans at mansr.com




More information about the ffmpeg-devel mailing list