avformat/hlsenc: fix base_output_dirname is null when basename_size is 0 bug