avformat/hlsenc: fix Explicit null dereferenced in hlsenc
authorSteven Liu <lq@chinaffmpeg.org>
Thu, 5 Jan 2017 22:29:12 +0000 (06:29 +0800)
committerSteven Liu <lq@chinaffmpeg.org>
Thu, 5 Jan 2017 22:29:12 +0000 (06:29 +0800)
commit57ae94a3c0fced20464d9ae351efc977d964be38
treedb26680debc482ae51bf68b68b1f9d7c023f897a
parentfd0716b364f83257caab723e2bb7c65483cb2073
avformat/hlsenc: fix Explicit null dereferenced in hlsenc

CID: 1398228
Passing null pointer dirname to strlen, which dereferences it.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
libavformat/hlsenc.c