[FFmpeg-devel] [PATCH] libavformat: Segfault on Apple HTTP Livestream playlist with unavailable hosts
Nicolas George
nicolas.george at normalesup.org
Wed Dec 14 17:32:35 CET 2011
Le quartidi 24 frimaire, an CCXX, Takis Issaris a écrit :
> The attached patch checks the AVFormatContext->iformat pointer before
> dereferencing it.
That seems wrong: there are a lot of places that dereference iformat
unconditionally, thus it seems that it being not null is implicitly part of
the API.
According to your ticket :
> the code jumps to fail, which invokes free_variant_list() which in turn
> invokes avformat_close_input()
I believe free_variant_list is wrong to call avformat_close_input on format
contexts that have not been properly opened.
I am not a specialist of applehttp, though, nor of anything with "apple" in
it which does not involve food.
Regards,
--
Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20111214/4e02dca5/attachment.asc>
More information about the ffmpeg-devel
mailing list