[FFmpeg-devel] [PATCH] avformat/hlsenc: fix Explicit null dereferenced

Michael Niedermayer michael at niedermayer.cc
Thu Jan 5 20:00:46 EET 2017


On Thu, Jan 05, 2017 at 08:40:56AM +0800, Steven Liu wrote:
> CID: 1323076
> Passing null pointer loc to avformat_new_stream, which dereferences it

>  fix: because the vtt_oc maybe have not value, so fix it.

hmm

i think:
this is wrong:
        hls->vtt_oformat = av_guess_format("webvtt", NULL, NULL);
        if (!hls->oformat) {
above checks the wrong value

then vtt_oformat should be non null


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

Breaking DRM is a little like attempting to break through a door even
though the window is wide open and the only thing in the house is a bunch
of things you dont want and which you would get tomorrow for free anyway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170105/afb71791/attachment.sig>


More information about the ffmpeg-devel mailing list