[FFmpeg-devel] Patch: explicitly initialize AVFormatContext *ic = NULL

Michael Niedermayer michaelni
Fri Jul 10 04:05:04 CEST 2009


On Thu, Jul 09, 2009 at 10:59:56PM +0800, avcoder wrote:
> Dear:
> 
> "
>     Fix mem leak when user preallocates an AVFormatContext, passes it to
>     av_open_input_file(), but the file does not exist.
>     Patch by Art Clarke a$(surname) xuggle com
> 
> 
>     git-svn-id: file:///var/local/repositories/ffmpeg/trunk at 19370
> 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
> "
> 
> The commit will cause error when calling av_freep() at the end of
> av_open_input_file() if we fail to explicitly initialize the args:
> AVFormatContext **ic_ptr in calling routine.

then the patch should be reverted

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Good people do not need laws to tell them to act responsibly, while bad
people will find a way around the laws. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090710/53c49990/attachment.pgp>



More information about the ffmpeg-devel mailing list