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

2017-01-05 Thread Steven Liu
2017-01-06 2:00 GMT+08:00 Michael Niedermayer : > 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 w

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

2017-01-05 Thread Steven Liu
2017-01-06 1:53 GMT+08:00 Michael Niedermayer : > On Thu, Jan 05, 2017 at 08:28:56AM +0800, Steven Liu wrote: > > CID: 1398228 > > Passing null pointer dirname to strlen, which dereferences it. > > > > Signed-off-by: Steven Liu > > --- > > libavformat/hlsenc.c | 4 ++-- > > 1 file changed, 2 ins

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

2017-01-05 Thread Michael Niedermayer
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, N

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

2017-01-05 Thread Michael Niedermayer
On Thu, Jan 05, 2017 at 08:28:56AM +0800, Steven Liu wrote: > CID: 1398228 > Passing null pointer dirname to strlen, which dereferences it. > > Signed-off-by: Steven Liu > --- > libavformat/hlsenc.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/libavformat/hlsenc.

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

2017-01-04 Thread Steven Liu
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. Signed-off-by: Steven Liu --- libavformat/hlsenc.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/libavformat/hlsenc.c b

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

2017-01-04 Thread Steven Liu
CID: 1398228 Passing null pointer dirname to strlen, which dereferences it. Signed-off-by: Steven Liu --- libavformat/hlsenc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index 808a797..3c6490a 100644 --- a/libavformat/hlsen